const process = (Router) => {
  const _push = Router.prototype.push
  Router.prototype.push = function push (location, onResolve, onReject) {
    if (onResolve || onReject) return _push.call(this, location, onResolve, onReject)
    return _push.call(this, location).catch(err => err)
  }
}
export default {
  process
}
